<?xml version="1.0" encoding="utf-8" ?>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>	
<%String language = request.getParameter("lang");
String langAnt = request.getParameter("langAnt");%>
<fmt:setLocale value="<%=language %>" scope="page"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=V" />
	<link href="styles/style1.css" type="text/css" rel="stylesheet"/>
	<title><fmt:message key="consultas.title"/></title>
</head>
<body>
	<h1><fmt:message key="consultas.title"/></h1>
	
	<div id="cabecera">
		<p><a href="predefinidas.jsp?lang=es"><fmt:message key="spanish"/><img src="images/Spain.png" alt="Bandera española"/></a>/<a href="predefinidas.jsp?lang=en"><fmt:message key="english"/><img src="images/england.png" alt="Bandera inglesa"/></a></p>
	</div>
	
	<ul class="list">
		<li><a href="snorql.jsp?query=SELECT+%3Funemployment+%3Fmonth+%3Fyear+%3Fgenre%0D%0AFROM+%3Chttp%3A%2F%2Fpurl.org%2Fweso%2FtestObservatory%2FobservatoryByGenres%2F%3E%0D%0AWHERE%0D%0A{%0D%0A++%3Fx+rdf%3Atype+%3Chttp%3A%2F%2Fpurl.org%2Flinked-data%2Fcube%23Observation%3E%3B%0D%0A++o%3Aunemployment+%3Funemployment%3B%0D%0A++o%3ArefYear+%3Fyear%3B%0D%0A++o%3ArefGenres+%3Fgenre%3B%0D%0A++o%3ArefMonth+%3Fmonth.++%0D%0A++FILTER+%28xsd%3Along%28%3Fyear%29+%3E%3D+xsd%3Along%282008%29+%26%26+xsd%3Along%28%3Fyear%29+%3C%3D+xsd%3Along%282010%29%29%0D%0A++FILTER+%28langMatches%28lang%28%3Fmonth%29%2C+%22<%=language %>%22%29%29%0D%0A++FILTER+%28langMatches%28lang%28%3Fgenre%29%2C+%22<%=language %>%22%29%29%0D%0A}"><fmt:message key="consulta1"/></a></li>
		<li><a href="snorql.jsp?query=SELECT+%3Funemployment+%3Fmonth+%3Fyear+%3Fsector%0D%0AFROM+%3Chttp%3A%2F%2Fpurl.org%2Fweso%2FtestObservatory%2FobservatoryBySectors%2F%3E%0D%0AWHERE%0D%0A{%0D%0A++%3Fx+rdf%3Atype+%3Chttp%3A%2F%2Fpurl.org%2Flinked-data%2Fcube%23Observation%3E%3B%0D%0A++o%3Aunemployment+%3Funemployment%3B%0D%0A++o%3ArefYear+%3Fyear%3B%0D%0A++o%3ArefSector+%3Fsector%3B%0D%0A++o%3ArefMonth+%3Fmonth.++%0D%0A++FILTER+%28xsd%3Along%28%3Fyear%29+%3E%3D+xsd%3Along%282008%29%29++%0D%0A++FILTER+%28str%28%3Fmonth%29+%3D+%22Julio%22+||+str%28%3Fmonth%29+%3D+%22July%22%29%0D%0A++FIlTER+%28str%28%3Fsector%29+%3D+%22Servicios%22+||+str%28%3Fsector%29+%3D+%22Services%22%29%0D%0A++FILTER+%28langMatches%28lang%28%3Fmonth%29%2C+%22<%=language%>%22%29%29%0D%0A++FILTER+%28langMatches%28lang%28%3Fsector%29%2C+%22<%=language %>%22%29%29%0D%0A}"><fmt:message key="consulta2"/></a></li>
		<li><a href="snorql.jsp?query=SELECT+%3Fmonth+%3Fyear+%3Fage+%3Funemployment%0D%0AFROM+%3Chttp%3A%2F%2Fpurl.org%2Fweso%2FtestObservatory%2FobservatoryByAges%2F%3E%0D%0AWHERE+%0D%0A{%0D%0A++%3Fx+rdf%3Atype+%3Chttp%3A%2F%2Fpurl.org%2Flinked-data%2Fcube%23Observation%3E%3B%0D%0A++o%3ArefMonth+%3Fmonth%3B%0D%0A++o%3ArefYear+%3Fyear%3B%0D%0A++o%3ArefAges+%3Fage%3B%0D%0A++o%3Aunemployment+%3Funemployment%0D%0A++FILTER+%28langMatches%28lang%28%3Fmonth%29%2C+%22<%=language%>%22%29%29%0D%0A++FILTER+%28langMatches%28lang%28%3Fage%29%2C+%22<%=language%>%22%29%29%0D%0A++FILTER+%28xsd%3Along%28%3Fyear%29+%3D+xsd%3Along%282011%29%29.%0D%0A++FILTER+%28str%28%3Fage%29+%3D+%22menor25%22+||+str%28%3Fage%29+%3D+%22less25%22%29%0D%0A}"><fmt:message key="consulta3"/></a></li>
	</ul>

</body>
</html>